package com.yh.manage.cms.dao;

import com.lxw.framework.domain.cms.CmsPage;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CmsPageRepository extends MongoRepository<CmsPage,String> {

    //public CmsPage getCms(String id);
    public List<CmsPage> findByPageAliaseAndPageType(String pageAlise, String pageType);

    public CmsPage findByPageNameAndSiteIdAndPageWebPath(String pageName,String siteId,String pageWebPath);

    public Integer deleteByPageId(String pageId);
}
